package com.bwda.dsrs.filecenter.config;

import com.bwda.dsrs.base.util.DateUtil;
import com.bwda.dsrs.filecenter.api.OrgServiceApi;
import com.bwda.dsrs.filecenter.service.ScanResultStatisticsService;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
//import org.springframework.data.redis.core.RedisTemplate;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

import java.io.File;
import java.util.Date;

/**
 * Scheduler配置类
 *
 * @author youzhen
 * @date 2018年6月6日
 */
@Component
public class SchedulerConfig {
    @Autowired
    private ScanResultStatisticsService scanResultStatisticsService;

    private static final Logger logger = LoggerFactory.getLogger(SchedulerConfig.class);

    @Scheduled(cron = "${task.scan.result.statistics}")
    public void statisticsAll(){
        scanResultStatisticsService.statistics(null);
    }
}
